package com.azt.api.pojo;

import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Table;

import com.azt.pojo.BaseEntity;

@Table(name = "u_coin_rule")
public class CoinRule extends BaseEntity {

    public static final Integer SUB_OPERATE_TYPE = -1;//安装币减
    public static final Integer ADD_OPERATE_TYPE = 1;//安装币加

    public static final Integer TYPE_NUM = 1;//数量类型
    public static final Integer TYPE_PRO = 2;//比例类型
    public static final Integer TYPE_BOTH = 3;//混合型

    public static final String PAY_ENQ_DUC = "PAY_ENQ_DUC";//询价支付抵扣的标示
    public static final String PAY_MALL_DUC = "PAY_MALL_DUC";//商城支付抵扣的标示
    public static final String PAY_ENQ_ADD = "PAY_ENQ";//询价订单支付赠送
    public static final String PAY_MALL_ADD = "PAY_MALL";//商城订单支付赠送

	
	@Column(name="title")
    private String title;
	
	@Column(name="descr")
    private String descr;
	
	@Column(name="ruleCode")
    private String ruleCode;
	
	@Column(name="amount")
    private Double amount;
	
	@Column(name="coinAmount")
    private Double coinAmount;
	
	@Column(name="orderAmount")
    private Double orderAmount;
	
	@Column(name="type")
    private Integer type;
	
	@Column(name="operateType")
    private Integer operateType;
	
	@Column(name="removed")
    private Integer removed;
	
	@Column(name="starttime")
    private Date starttime;
	
	@Column(name="endtime")
    private Date endtime;
	
    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title == null ? null : title.trim();
    }

    public String getDescr() {
        return descr;
    }

    public void setDescr(String descr) {
        this.descr = descr == null ? null : descr.trim();
    }

    public String getRuleCode() {
        return ruleCode;
    }

    public void setRuleCode(String ruleCode) {
        this.ruleCode = ruleCode == null ? null : ruleCode.trim();
    }

    public Double getAmount() {
        return amount;
    }

    public void setAmount(Double amount) {
        this.amount = amount;
    }

    public Double getCoinAmount() {
        return coinAmount;
    }

    public void setCoinAmount(Double coinAmount) {
        this.coinAmount = coinAmount;
    }

    public Double getOrderAmount() {
        return orderAmount;
    }

    public void setOrderAmount(Double orderAmount) {
        this.orderAmount = orderAmount;
    }

    public Integer getType() {
        return type;
    }

    public void setType(Integer type) {
        this.type = type;
    }

    public Integer getOperateType() {
        return operateType;
    }

    public void setOperateType(Integer operateType) {
        this.operateType = operateType;
    }

    public Integer getRemoved() {
        return removed;
    }

    public void setRemoved(Integer removed) {
        this.removed = removed;
    }

    public Date getStarttime() {
        return starttime;
    }

    public void setStarttime(Date starttime) {
        this.starttime = starttime;
    }

    public Date getEndtime() {
        return endtime;
    }

    public void setEndtime(Date endtime) {
        this.endtime = endtime;
    }
}